﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ViewMaker.Core.Views;
using ViewMaker.Core.Controls;

namespace ViewMaker.Core.ViewModels
{
    [View(typeof(StatusFooterView))]
    public class StatusFooterViewModel : ViewModelBase
    {
        public string Message
        {
            get { return _message; }
            set { _message = value; OnPropertyChanged("Message"); }
        }
        private string _message;


        public string MessageColor
        {
            get { return _messageColor; }
            set { _messageColor = value; OnPropertyChanged("MessageColor"); }
        }
        private string _messageColor;


        public int ProgressValue
        {
            get { return _progressvalue; }
            set { _progressvalue = value; OnPropertyChanged("ProgressValue"); }
        }
        private int _progressvalue;

        public bool ProgressVisibility
        {
            get { return _progressVisibility; }
            set { _progressVisibility = value; OnPropertyChanged("ProgressVisibility"); }
        }
        private bool _progressVisibility;

        public void SetInformationMessage(string message)
        {
            this.Message = message;
            this.MessageColor = "Blue";
        }

        public void SetWarningMessage(string message)
        {
            this.Message = message;
            this.MessageColor = "Red";
        }

    }
}
